package com.bstek.frame.utils;

import java.util.Random;

/**
 *@date 20140808
 *@Description 应用层公共类
 */
public class AppUtils {
	/**
	 * 生成UUID
	 * @return
	 */
	public static String generateUUID(){
		String uuid = java.util.UUID.randomUUID().toString().replaceAll("-", "");
		return uuid;
	}

	/**
	 * 随机生成六位数
	 * @return
	 */
	public static String  randomSixNumber(){
		int flag = new Random().nextInt(999999);
		if(flag<10000){
			flag +=100000;
		}
		return String.valueOf(flag);
	}

}
